package com.bjpowernode.javase.collection.queue;

import java.util.LinkedList;
import java.util.Queue;

public class LinkedLIstTest {
    public static void main(String[] args) {
        Queue<String> queue = new LinkedList<>();
        //添加元素
        queue.offer("a");
        queue.offer("b");
        queue.offer("c");
        queue.offer("d");
        queue.offer("e");
        System.out.println(queue.size());
        String poll = queue.poll();
        System.out.println(poll);
        System.out.println(queue.size());
    }
}
